<?php
// $Id$

/**
 * @file
 * TODO
 */

function _portals_get_image ($image_name) {
  switch ($image_name) {
  case 'newportal':
      return _portals_get_image_tag('table_add');
  case 'editportal':
      return _portals_get_image_tag('table_edit');
  case 'removeportal':
      return _portals_get_image_tag('table_delete');
  case 'childportal':
      return _portals_get_image_tag('table_go');
  case 'settingsportal':
      return _portals_get_image_tag('table_gear');
  }
}

function _portals_get_image_tag ($image_name) {
  return base_path() . drupal_get_path('module', 'portals') ."/images/$image_name.png";
}